<?php
include("conn.php");
$name = $_POST['name'];
$result = $_POST['result'];
$sl = $_POST['sl'];
$pz = $_POST['pz'];

// 创建预编辑的sql语句
$stmt = $conn ->prepare("insert into result(name,result,sl,pz)values(?,?,?,?)");
$stmt -> bind_param("siis",$name,$result,$sl,$pz);
$stmt -> execute();
if ($conn->affected_rows){
	echo"添加成功！";
} else {
	echo "Error: ".$conn -> error;
}
$stmt-> close();
$conn-> close();
?>